package com.example.multi.gateway;

import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, ArchaiusAutoConfiguration.class})
//@EnableEurekaClient
@EnableDiscoveryClient
public class MultiGatewayApplication {

  public static void main(String[] args) {
    SpringApplicationBuilder springApplicationBuilder = new SpringApplicationBuilder(MultiGatewayApplication.class);
    springApplicationBuilder.bannerMode(Banner.Mode.CONSOLE);
    springApplicationBuilder.web(WebApplicationType.REACTIVE);
    springApplicationBuilder.run(args);
  }

}
